package com.pureut.equipment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pureut.equipment.domain.MaintenancePlan;
import com.pureut.equipment.domain.dto.MaintenancePlanDto;
import com.pureut.equipment.domain.vo.MaintenancePlanVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/***
 *
 * Author: 保养计划mapper
 * Date:2023/04/23 14:20
 * @DESC
 */
@Mapper
public interface MaintenancePlanMapper extends BaseMapper<MaintenancePlan> {

    /**
     * 保养计划列表
     */
    Page<MaintenancePlanDto> getPlanList(@Param("maintenancePlanVo") MaintenancePlanVo maintenancePlanVo,@Param("page") Page<MaintenancePlanDto> page);

    /**
     * 查询保养计划是否存在
     */
    List<MaintenancePlanDto> isWhether(long maintenanceProjectId);
}
